<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Index Inicial TFC</title>
<script>
console.log("Cargando config dojoConfig 1");

	var dojoConfig = {
		dojoBlankHtmlUrl: location.pathname.replace(/\/[^/]+$/, '') + '/blank.html',
		packages: [{
			name: 'fusion',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/fusion'
		},{
			name: 'auth',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/fusion/auth'
		},
		{
			name: 'nls',
			location: location.pathname.replace(/\/[^/]+$/, '') + '/js/es/tfc/nls'
		}]
	};

</script>
<!-- load dojo and provide config via data attribute 
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojo/dojo.js"></script>-->
<script src="//ajax.googleapis.com/ajax/libs/dojo/1.9.0/dojo/dojo.js"></script>

<script type="text/javascript">
	function autenticarEnGoogle(){
		require(["auth/authenticateGoogle"], function (authenticateGoogle) {
			authenticateGoogle.init();
	     });
	  
	}
	
	function autorizaAhora(){
		require(["auth/authenticateGoogle"], function (authenticateGoogle) {
			authenticateGoogle.auth(false); return false;
		 });
	}
	
	function testInternacionalizacio(){
		require(["dojo/i18n!js/es/tfc/nls/IndexStrings.js", "dojo/dom-construct", "dojo/domReady!"],
			function(IndexStrings, domConst){
			console.log("testInternacionalizacion::probando...");
			  domConst.place("<h1>" +IndexStrings.msgInicial+ "</h1>",
			    "titulo"
			  );
			});
	}
	
</script>
 <script src="https://apis.google.com/js/client.js?onload=autenticarEnGoogle"></script>
</head>
<body>
<button onclick="testInternacionalizacio()">miboton</button>
<div id="titulo"></div>

</body>
</html>